package com.yugao.fintech.antelope.shop.model.rqrs.sku;

import com.yugao.fintech.antelope.base.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 出入库存记录
 *

 */
@Getter
@Setter
public class SkuStockInOutRecordBase {
    @NotNull(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "出入库类型, 正数表示入库, 负数表示出库")
    private Integer type;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "总金额")
    private BigDecimal totalPrice;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "状态, 1: 待审核, 2: 已审核 3. 拒绝")
    private String status;

    @ApiModelProperty(value = "拒绝理由")
    private String refuseReason;

    @ApiModelProperty(value = "审核时间")
    private Date auditTime;
}
